package com.zhsq.zlc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import java.io.IOException;

@SpringBootApplication
@MapperScan(value={"com.zhsq.zlc.dao","com.zhsq.zlc.dingwei.dao"})
@EnableTransactionManagement
@EnableScheduling //定时任务
public class ZHSQApplication extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(ZHSQApplication.class);
	}

	public static void main(String[] args) throws IOException{
		SpringApplication.run(ZHSQApplication.class, args);
	}
}
